package com.wanrue.tcc.context;

import lombok.Data;

import java.io.Serializable;

/**
 * Created by changmingxie on 11/9/15.
 */
@Data
public class Invocation implements Serializable {

    private static final long serialVersionUID = -7969140711432461165L;

    private Object[] args;

    private Class target;

    private String method;

    private Class[] parameterTypes;

    public Invocation(Class target, String method, Class[] parameterTypes, Object... args) {
        this.args = args;
        this.method = method;
        this.target = target;
        this.parameterTypes = parameterTypes;
    }

}
